/*
 * @lc app=leetcode.cn id=1360 lang=typescript
 *
 * [1360] 日期之间隔几天
 */

// @lc code=start
function daysBetweenDates(date1: string, date2: string): number {
    const diff = new Date(date1).getTime() - new Date(date2).getTime();
    return Math.abs(diff / (24 * 60 * 60 * 1000));
}
// @lc code=end
